import request from '@/utils/request'

// 查询车位查询列表
export function listCarLocation(query) {
  return request({
    url: '/parking/carLocation/list',
    method: 'get',
    params: query
  })
}

// 查询车位查询详细
export function getCarLocation(parkId) {
  return request({
    url: '/parking/carLocation/' + parkId,
    method: 'get'
  })
}

// 新增车位查询
export function addCarLocation(data) {
  return request({
    url: '/parking/carLocation',
    method: 'post',
    data: data
  })
}

// 修改车位查询
export function updateCarLocation(data) {
  return request({
    url: '/parking/carLocation',
    method: 'put',
    data: data
  })
}

// 删除车位查询
export function delCarLocation(parkId) {
  return request({
    url: '/parking/carLocation/' + parkId,
    method: 'delete'
  })
}
